﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="QuestionResourceList.aspx.cs"
    Inherits="sysadmin_QuestionManager_QuestionResourceList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理题库多媒体资源</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />
</head>
<body class="bodymain">
    <form id="form1" runat="server">
        <table border="0" cellpadding="0" cellspacing="0" class="tree-titbg_right" width="100%">
            <tr>
                <td class="tree-titbg_left">
                    管理题库多媒体资源</td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" class="tableList2" width="100%">
            <tr>
                <th>
                    资源类型</th>
                <td >
                    <asp:DropDownList ID="ddl_" runat="server" Width="126px">
                        <asp:ListItem Value="-1">请选择</asp:ListItem>
                        <asp:ListItem Value="0">音视频</asp:ListItem>
                        <asp:ListItem Value="1">其他类型</asp:ListItem>
                    </asp:DropDownList></td>
                <th>
                    资源名称</th>
                <td>
                    <asp:TextBox ID="txt_Resourcename" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="4"  class="tree-bottom-bg" >
                    <asp:Button ID="btnSearch" runat="server" CssClass="inputBotton2" Text=" 搜 索 " OnClick="btnSearch_Click" />&nbsp;
                    <asp:Button ID="btn_AddResource" runat="server" CssClass="inputBotton2" Text=" 添加资源"
                        OnClick="btn_AddQuestion_Click" /></td>
            </tr>
        </table>
     
        <asp:GridView ID="gvQuestionList" runat="server" AutoGenerateColumns="False" OnRowCommand="gvQuestionList_RowCommand"
            OnRowDataBound="gvQuestionList_RowDataBound" GridLines="None" BorderWidth="0px"
            CssClass="mainList" >
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="Chbox_Check" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Index" HeaderText="编号" />
                <asp:BoundField DataField="QuestionResID" HeaderText="资源ID" />
                <asp:BoundField DataField="QuestionResFileName" HeaderText="原始文件名" />
                <asp:BoundField DataField="QuestionResUrl" HeaderText="资源Url地址" />
                <asp:BoundField DataField="QuestionResFileType" HeaderText="文件类型" />
                <asp:BoundField DataField="QuestionResCreateTime" HeaderText="创建时间" />
                <asp:BoundField DataField="QuestionResUpdateTime" HeaderText="最后修改时间" />
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <a href='editQuestionResource.aspx?ID=<%#Eval("QuestionResID") %>'>编辑</a> <a href='openquestionresource.aspx?ID=<%#Eval("QuestionResGuID") %>'
                            target="_blank">预览</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <%=GetLanageValueByKey("msg_Page_Nodate", PowerCreator.LMS.Language.LanagetItemType.Page)%>
            </EmptyDataTemplate>
        </asp:GridView>
 
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td align="center">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Center" OnPageChanged="AspNetPager1_PageChanged"
                        ShowCustomInfoSection="Left" Width="100%" meta:resourceKey="AspNetPager1" Style="font-size: 14px"
                        InputBoxStyle="width:19px" CustomInfoHTML="当前页  <font color='red'><b>%CurrentPageIndex%</b></font> 总页数  %PageCount%  当前条数 %StartRecordIndex%-%EndRecordIndex%"
                        FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
        <br />
    </form>
</body>
</html>
